package com.wade.demo.springbootnutz.service.impl;

import java.util.List;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wade.demo.springbootnutz.domain.entity.Gateway;
import com.wade.demo.springbootnutz.service.GatewayService;

/**
 *
 * @company: creekspring
 * @author wdChen
 * @date:2017-09-15 13:56:15
 * @Description:
 */
@Service
public class GatewayServiceImpl implements GatewayService {
  
  @Autowired
  private Dao dao;
  
  @Override
  public List<Gateway> listAll() {
    return dao.query(Gateway.class, Cnd.where(Gateway.Field.DELETED_AT, "=", 0));
  }
}
